﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SourceControlEssentials
{
    class Filippov : IStudent
    {
        public override int GetHashCode()
        {
            return 19;
        }

        public int Id()
        {
            return GetHashCode();
        } 

        public string GetLastName() 
        {
            return "Filippov";
        }

        public string GetFirstName() 
        {
            return "Valentyn";
        }
        
        public int GetGroup()
        {
            throw new NotImplementedException();
        }

        public string MethodName() 
        {
            return "Integer representation of a string # 2";
        }
        public string ExecuteStrategy(string value)
        {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < value.Length; i++)
            {
                int intValue = (int)value[i];
                sb.Append(intValue.ToString());
            }
            return sb.ToString();           
        }
    }
}

